public class Test {
    public String name;
    public int age;
    public String gender;

    public void Setstudent(int age,String name,String gender) {
        this.age = age;
        this.name=name;
        this.gender=gender;
    }
    public void print(){
        System.out.println("姓名："+name+"  年龄："+age+"  性别："+gender);
    }

    public static void main(String[] args) {
        Test a=new Test();
        Test b=new Test();
        Test c=new Test();
        a.Setstudent(1000,"王牛逼","男");
        b.Setstudent(356,"王牛逼","男");
        c.Setstudent(46,"王牛逼","未知");
        a.print();
        b.print();
        c.print();
    }
}

